package com.imooc.service;

import com.imooc.dataobject.OrderMaster;
import com.imooc.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @author wyc
 * @date 2021/1/14 16:57
 */
public interface OrderService {

    OrderDTO create(OrderDTO orderDTO);

    /** 查询单个订单 . */
    OrderDTO findOne(String orderId);

    /** 查询订单列表 . */
    Page<OrderDTO> findList(String buyerOpenid, Pageable pageable);

    OrderDTO cancel(OrderDTO orderDTO);

    OrderDTO finish(OrderDTO orderDTO);

    OrderDTO paid(OrderDTO orderDTO);

    /** 查询订单列表 . */
    Page<OrderDTO> findList(Pageable pageable);
}
